import { createPinia } from 'pinia'
import { App } from 'vue'

import { useGlobalStore } from './modules/global'
import { useAuthUserStore } from './modules/auth/user'
import { useAuthMenuStore } from './modules/auth/menu'
import { useCoreAppStore } from './modules/core/app'

const pinia = createPinia()
export default {
    install(app: App) {
        app.use(pinia)
    }
}

export { useGlobalStore, useAuthUserStore, useAuthMenuStore, useCoreAppStore }
